const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')

module.exports = {
    // 将构建好的文件输出到哪里
    outputDir: './dist',
    configureWebpack: {
        plugins: [
            // 需要用到拷贝文件的插件
            new CopyWebpackPlugin([
                {
                  from: path.resolve(__dirname, './static'),
                  to: '.',
                  ignore: ['.*']
                }
              ])
        ]
    }
}